<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Share extends AIA_Controller {

    function __construct() {
        parent::__construct();
        // $this->_check_user();
    }

    public function index() {
        $id = $this->input->get('haha', true);
        $this->load->database();
        $this->load->model('Aia_model');
        $row = $this->Aia_model->get_share_info($id);
        if (!count($row)) {
            redirect(base_url());
        }
        $row['sh'] = $this->input->get('sh', true);
        $row['ih'] = $this->input->get('ih', true);
        $row['sp'] = $this->input->get('sp', true);
        $this->load_resource();
    	$this->load->view('public/header', $row);
    	$this->load->view('share');
    }

}

/* End of file index.php */
/* Location: ./application/controllers/index.php */